# -*- coding:utf-8 -*-

__author__ = 'dong'

import re

# 发布成功
with open('a.html', 'r') as fd:
    c = fd.read()
    print re.findall(r'<h1 class="h">(.+?)</h1>', c)[0]
    print type(re.findall(r'<h1 class="h">(.+?)</h1>', c)[0])